package Decorator;

import Component.Component;
public class DecoratorBold extends Decorator{
    public DecoratorBold(Component initComponent) {

        super(initComponent);
    }

    @Override
    public void operation(String outText) {
        super.operation(outText);
        AddBoldStyle();

    }

    private void AddBoldStyle() {

        System.out.println("加粗样式");
    }
}
